<template>
  <div class="qfpage">
    <div class="hd">
      <div v-if="props.title">{{ props.title }}</div>
      <slot name="hd"></slot>
    </div>
    <div class="ct">
      <slot></slot>
    </div>

    <div class="ft">
      <slot name="ft"></slot>
    </div>
  </div>
</template>
<script setup lang="ts">
import { defineProps } from 'vue';
// 接受一个title的自定义属性传参
const props = defineProps(['title']);
</script>
<style scoped>
.qfpage {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ct {
  height: 0;
  flex-grow: 1;
}
</style>
